package org.example.demo0906.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
   //http://localhost:8080/****
    //http://localhost:8080/hello
    //***取决于RequestMapping后跟的内容
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }
}
